package com.hf.eagle.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hf.eagle.dao.OrderProductDetailDao;
import com.hf.eagle.domain.OrderProductDetail;
import com.hf.eagle.service.OrderProductDetailService;

/**
 * @author Xu,XiaoYuan
 * @version 2011-11-13 19:34
 */
@Service
public class OrderProductDetailServiceImpl implements OrderProductDetailService {

	@Resource
	private OrderProductDetailDao orderProductDetailDao;
	

	public Long createOrderProductDetail(OrderProductDetail t) {
		return this.orderProductDetailDao.insertEntity(t);
	}

	public OrderProductDetail getOrderProductDetail(OrderProductDetail t) {
		return this.orderProductDetailDao.selectEntity(t);
	}

	public Long getOrderProductDetailCount(OrderProductDetail t) {
		return this.orderProductDetailDao.selectEntityCount(t);
	}

	public List<OrderProductDetail> getOrderProductDetailList(OrderProductDetail t) {
		return this.orderProductDetailDao.selectEntityList(t);
	}

	public int modifyOrderProductDetail(OrderProductDetail t) {
		return this.orderProductDetailDao.updateEntity(t);
	}

	public int removeOrderProductDetail(OrderProductDetail t) {
		return this.orderProductDetailDao.deleteEntity(t);
	}

	public List<OrderProductDetail> getOrderProductDetailPaginatedList(OrderProductDetail t) {
		return this.orderProductDetailDao.selectEntityPaginatedList(t);
	}

}
